<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Level Admin</title>
        <link rel="stylesheet" href="/admin/css/reset.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="/admin/css/style.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="/admin/css/invalid.css" type="text/css" media="screen" />	
        <script type="text/javascript" src="/admin/scripts/jquery-1.3.2.min.js"></script>
        <script type="text/javascript" src="/admin/scripts/simpla.jquery.configuration.js"></script>
        <script type="text/javascript" src="/admin/scripts/facebox.js"></script>
        <script type="text/javascript" src="/admin/scripts/jquery.wysiwyg.js"></script>
        <script type="text/javascript" src="/admin/scripts/jquery.datePicker.js"></script>
        <script type="text/javascript" src="/admin/scripts/jquery.date.js"></script>
    </head>
    <body><div id="body-wrapper"> <!-- Wrapper for the radial gradient background -->

            <div id="sidebar"><div id="sidebar-wrapper"> <!-- Sidebar with logo and menu -->

                    <h1 id="sidebar-title"><a href="#">Level Admin</a></h1>

                    <!-- Logo (221px wide) -->
                    <a href="/admin/index.php"><img id="logo" src="/admin/images/logo.png" alt="Simpla Admin logo" /></a>

                    <!-- Sidebar Profile links -->
                    <div id="profile-links">
                        Hello, <a href="#" title="Edit your profile">Administrator</a>
                        <br />
                        <a href="/" title="View the Site">View the Site</a> | <a href="/admin/index.php/index/logout" title="Sign Out">Sign Out</a>
                    </div>        

                    <ul id="main-nav">  <!-- Accordion Menu -->

                        <li>
                            <a href="/admin/index.php/Case/index" class="nav-top-item">案例管理</a>
                            <ul>
                                <li><a href="/admin/index.php/Case/index">案例列表</a></li>
                                <li><a href="/admin/index.php/Case/recommandList">首页案例列表</a></li>
                                <li><a href="/admin/index.php/Case/create">添加案例</a></li>
                            </ul>
                        </li>
                        <li> 
                            <a href="/admin/index.php/News/index/type/1" class="nav-top-item">新闻管理</a>
                            <ul>
                                <li><a href="/admin/index.php/News/index/type/1">最新案例</a></li>
                                <li><a href="/admin/index.php/News/index/type/2">力洋活动</a></li> <!-- Add class "current" to sub menu items also -->
                                <li><a href="/admin/index.php/News/create">添加新闻</a></li>
                            </ul>
                        </li>

                        <li>
                            <a href="/admin/index.php/Career/index" class="nav-top-item  no-submenu current">职业管理</a>
                            <ul>
                                <li><a href="/admin/index.php/Career/index">职业列表</a></li>
                                <li><a class="current" href="/admin/index.php/Career/create">添加职业</a></li>
                            </ul>
                        </li>
                        <li>
                            <a href="/admin/index.php/Bgimage/index" class="nav-top-item">背景图管理</a>
                            <ul>
                                <li><a href="/admin/index.php/Bgimage/index">背景图列表</a></li>
                                <li><a href="/admin/index.php/Bgimage/create">添加背景图</a></li>
                            </ul>
                        </li>
                    </ul> <!-- End #main-nav -->

                </div></div> <!-- End #sidebar -->

            <div id="main-content"> <!-- Main Content Section with everything -->

                <!-- Page Head -->
                <h2>Welcome</h2>
                <p id="page-intro">What would you like to do?</p>

                <ul class="shortcut-buttons-set">

                    <li><a class="shortcut-button" href="#"><span>
                                <img src="/admin/images/icons/paper_content_pencil_48.png" alt="icon" /><br />
                                添加职业
                            </span></a></li>

                </ul><!-- End .shortcut-buttons-set -->

                <div class="clear"></div> <!-- End .clear -->

                <div class="content-box"><!-- Start Content Box -->

                    <div class="content-box-header">

                        <h3>添加职业</h3>
                        <div class="clear"></div>

                    </div> <!-- End .content-box-header -->

                    <div class="content-box-content">
                        <div class="tab-content default-tab" id="tab1">

                            <form action="/admin/index.php/Career/insert" enctype="multipart/form-data" method="post">

                                <fieldset> <!-- Set class to "column-left" or "column-right" on fieldsets to divide the form into columns -->

                                    <p>
                                        <label>职位</label>
                                        <input class="text-input small-input" type="text" id="small-input" name="title" />
                                    </p>
                                    <p>
                                        <label>部门</label>
                                        <input class="text-input small-input" type="text" id="small-input" name="department" />
                                    </p>
                                    <p>
                                        <label>直属上级</label>
                                        <input class="text-input small-input" type="text" id="small-input" name="superior" />
                                    </p>
                                    <p>
                                        <label>真属下级</label>              
                                        <input class="text-input small-input" type="text" id="small-input" name="subordinate" />
                                    </p>
                                    <p>
                                        <label>岗位职责</label>
                                        <input type="button" value="增加(Add)" onclick="addInput('describe')" />
                                        <div id="describe">
                                            1&nbsp;<input class="text-input small-input" type="input" id="small-input" name="describe[]" />
                                        </div>
                                    </p>
                                    <p>
                                        <label>任职资格</label>
                                        <input type="button" value="增加(Add)" onclick="addInput('requirement')" />
                                        <div id="requirement">
                                            1&nbsp;<input class="text-input small-input" type="input" id="small-input" name="requirement[]" />
                                        </div>
                                    </p>
                                    <p>
                                        <input class="button" type="submit" value="添加" />
                                    </p>

                                </fieldset>

                                <div class="clear"></div><!-- End .clear -->

                            </form>

                        </div> <!-- End #tab2 -->        

                    </div> <!-- End .content-box-content -->

                </div> <!-- End .content-box -->

                <div class="clear"></div>

                <div id="footer">
                    <small> <!-- Remove this notice or replace it with whatever you want -->
                        &#169; Copyright 2009 Your Company | Powered by <a href="http://themeforest.net/item/simpla-admin-flexible-user-friendly-admin-skin/46073">Simpla Admin</a> | <a href="#">Top</a>
                    </small>
                </div><!-- End #footer -->

            </div> <!-- End #main-content -->
            <script type="text/javascript">
                var describe = 2,requirement = 2;
                function addInput(name)
                {
                    var str = '';
                    if (name =='describe')
                    {
                        str = '<p>'+describe+'&nbsp;<INPUT class="text-input small-input" type="input" id="small-input" name="'+name+'[]"></p>';
                        describe++;
                    }
                    if (name == 'requirement')
                    {
                        str = '<p>'+requirement+'&nbsp;<INPUT class="text-input small-input" type="input" id="small-input" name="'+name+'[]"></p>';
                        requirement++;
                    }
                    document.getElementById(name).insertAdjacentHTML("beforeEnd",str);
                }
            </script>
        </div></body>
</html>
